
using Microsoft.Xna.Framework;

namespace HumanElement.Xna.Construct
{
    /// <summary>
    /// ICollidable : Defines the collision test members for any given geometry.
    /// </summary>
    public interface ICollidable
    {
        /// <summary>
        /// Collides the specified geometry.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="geometry">The geometry.</param>
        /// <returns></returns>
        bool Collide<T>(T geometry);

        /// <summary>
        /// Intersectses the specified bounding volume.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="boundingVolume">The bounding volume.</param>
        /// <returns></returns>
        bool Intersects<T>(T boundingVolume);
    }
}